package com.snpic.appaw.module.third.api.commonCertification;

import com.fhs.core.trans.anno.AutoTrans;
import com.snpic.appaw.framework.common.pojo.CommonResult;
import com.snpic.appaw.module.third.api.commonCertification.dto.RealNameVerificationReqDTO;
import com.snpic.appaw.module.third.api.commonCertification.dto.RealNameVerificationRspDTO;
import com.snpic.appaw.module.third.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import static com.snpic.appaw.module.third.api.commonCertification.CommonCertificationApi.PREFIX;

/**
 * @author JiJun
 * @date 2025/9/18 17:48
 * @修改时间 2025/9/18 17:48
 * @description 统一配置化实名验真, 各渠道场景实名验真
 */
@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - 统一配置化实名验真")
@AutoTrans(namespace = PREFIX, fields = {"nickname"})
public interface CommonCertificationApi {
	String PREFIX = ApiConstants.PREFIX + "/commonCertification";

	@PostMapping(PREFIX + "/realNameVerification")
	@Operation(summary = "各渠道场景实名验真")
	public CommonResult<RealNameVerificationRspDTO> realNameVerification(@RequestBody @Valid RealNameVerificationReqDTO reqDTO);

}
